import nltk

print(nltk.pos_tag(["beautiful","world"]))